package com.pristine.domain;

import java.util.Date;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.SequenceGenerator;

@Entity(name="Procedure_Master")
public class ProcedureEntity {
	
	@ManyToOne(cascade = CascadeType.REFRESH)
	@JoinColumn(name="CAT_TYPE_ID", nullable=true)
	private CategoryTypeMasterEntity categoryType;
	
	@Id	
	@GeneratedValue(strategy = GenerationType.SEQUENCE,generator= "procedure-gen")
	@SequenceGenerator(name = "procedure-gen", sequenceName = "PROCEDURE_SEQ", allocationSize = 1, initialValue = 0)
	@Column(name="PROCESS_ID")
	private int processId;
	
	@Column(name="PROCESS_NAME")
	private String processName;
	
	@Column(name="PRICE")
	private float price;
	
	@Column(name="STATUS")
	private Integer status;
	
	@Column(name="CREATED_ON")
	private Date createdOn ;
	
	@Column(name="MODIFIED_ON")
	private Date modifiedOn;
	
	@Column(name="CREATED_BY")
	private Integer createdBy;
	
	@Column(name="MODIFIED_BY")
	private Integer modifiedBy;

	public CategoryTypeMasterEntity getCategoryType() {
		return categoryType;
	}

	public void setCategoryType(CategoryTypeMasterEntity categoryType) {
		this.categoryType = categoryType;
	}

	public int getProcessId() {
		return processId;
	}

	public void setProcessId(int processId) {
		this.processId = processId;
	}

	public String getProcessName() {
		return processName;
	}

	public void setProcessName(String processName) {
		this.processName = processName;
	}

	public float getPrice() {
		return price;
	}

	public void setPrice(float price) {
		this.price = price;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public Date getCreatedOn() {
		return createdOn;
	}

	public void setCreatedOn(Date createdOn) {
		this.createdOn = createdOn;
	}

	public Date getModifiedOn() {
		return modifiedOn;
	}

	public void setModifiedOn(Date modifiedOn) {
		this.modifiedOn = modifiedOn;
	}

	public Integer getCreatedBy() {
		return createdBy;
	}

	public void setCreatedBy(Integer createdBy) {
		this.createdBy = createdBy;
	}

	public Integer getModifiedBy() {
		return modifiedBy;
	}

	public void setModifiedBy(Integer modifiedBy) {
		this.modifiedBy = modifiedBy;
	}

	
}
